/**
 * 
 */
package com.atung.dao;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.atung.model.BusOrderRefund;
import com.atung.provider.BusOrderRefundProvider;

/**
 * 
 * @author lc <br>
 * 2020年11月23日 下午6:27:29
 */
@Mapper
public interface BusOrderRefundDAO {

    @InsertProvider(type = BusOrderRefundProvider.class,method="insert")
    Boolean insert(BusOrderRefund busOrderRefund);
    
    @Select("SELECT id,order_id,open_id,refund_id,wx_refund,total_fee,refund_fee,refund_state,refund_desc,refund_explain,refund_time,rout_expiration_time "
            + "FROM bus_order_refund WHERE order_id = #{orderId}")
    BusOrderRefund getByOrderId(Long orderId);
    
}
